]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
accessDialog: Change fallback button labels
authorAlessandro Bono <alessandro.bono369@gmail.com>
Wed, 16 Nov 2022 09:10:37 +0000 (10:10 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 19 Nov 2022 00:42:26 +0000 (00:42 +0000)
All the new portals dialog mockups have "Deny/Allow" buttons. Rename them.

https://gitlab.gnome.org/Teams/Design/os-mockups/-/blob/master/portals/portals.png

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2544>

js/ui/accessDialog.js

index 8788e474289ce9ee7d2f11a7a20ec397c1d5cdd1..fba2521fd740f5d39913abfea537218888df0fba 100644 (file)
@@ -36,8 +36,8 @@ class AccessDialog extends ModalDialog.ModalDialog {
     _buildLayout(title, description, body, options) {
         // No support for non-modal system dialogs, so ignore the option
         // let modal = options['modal'] || true;
-        let denyLabel = options['deny_label'] || _("Deny Access");
-        let grantLabel = options['grant_label'] || _("Grant Access");
+        let denyLabel = options['deny_label'] || _('Deny');
+        let grantLabel = options['grant_label'] || _('Allow');
         let choices = options['choices'] || [];
 
         let content = new Dialog.MessageDialogContent({ title, description });